package com.subject.shuati.domain.covert;

import com.subject.shuati.domain.entity.SubjectInfoBo;
import com.subject.shuati.domain.entity.SubjectOptionBo;
import com.subject.shuati.infra.basic.entity.SubjectBrief;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 实体类与Bo之间的转换
 */
@Mapper
public interface BriefSubjectConverter {

    BriefSubjectConverter INSTANCE = Mappers.getMapper(BriefSubjectConverter.class);

    /**
     * BO转实体类
     * @param subjectInfoBo
     * @return
     */
    SubjectBrief BoConverterToEntity(SubjectInfoBo subjectInfoBo);

    SubjectBrief OptionConverterToBo(SubjectOptionBo subjectOptionBo);
}
